<div class="left-uppercolumn-one">
  <div class="masthead"> </div>
  <div class="details">
    <p class="note">Housings, jobs, internships, buying vehicles and much more all near your campus!!!</p>
  </div>
  <div>

<% gr_id = 0 -%>
<% cat_id = 0 -%>

<% @sub_category.each do |su| -%>

  <% catid = Category.find(su.category_id) -%>

     <% id = Group.find(catid.group_id) -%>
    
         <% if id!=gr_id -%>
            <% gr_id=id -%>
          </div>
            <div class="links">
              <div><h2 class="style8"> <%= link_to h(gr_id.name), :action=>'# '-%></h2></div>
         <%end-%>

        <% if  cat_id != catid -%>
           <% cat_id = catid -%>
        <div class="subcategory_list">  <%= link_to h(catid.name), :action=>'#' -%> </div>
        <% else %>
           
         <%end-%>

         <div class="undersubcategory_list" > <%=  h(su.name) -%> </div>
       

<%end-%>
</div>
</div>


